HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprotonperinggit/wp-content/plugins/wp-cardealer/templates/single-listing/header.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
global $post;

$address = WP_CarDealer_Listing::get_post_meta( $post->ID, 'address', true );
$price = WP_CarDealer_Listing::get_price_html($post->ID);

?>
<div class="listing-detail-header">
    
    <div class="listing-information">
        <?php WP_CarDealer_Listing::get_listing_types_html($post->ID); ?>

        <?php the_title( '<h1 class="entry-title listing-title">', '</h1>' ); ?>

        <div class="listing-date-author">
            <?php echo sprintf(__('posted %s ago', 'wp-cardealer'), human_time_diff(get_the_time('U'), current_time('timestamp')) ); ?> 
            
        </div>
        <div class="listing-metas">
            <?php if ( $address ) { ?>
                <div class="listing-location"><?php echo wp_kses_post($address); ?></div>
            <?php } ?>
            <?php if ( $price ) { ?>
                <div class="listing-price"><?php echo wp_kses_post($price); ?></div>
            <?php } ?>
        </div>
    </div>

    <div class="listing-detail-buttons">
        <?php WP_CarDealer_Listing::display_favorite_btn($post->ID); ?>
    </div>
</div>